package com.achun.getcouponleague.utils;

import com.achun.getcouponleague.presenter.impl.Red_packetPresenter;
import com.achun.getcouponleague.presenter.impl.SearchPresenter;
import com.achun.getcouponleague.presenter.impl.SelectorPresenter;
import com.achun.getcouponleague.presenter.impl.TiketPresenter;

public class PresenterManager {
    private static PresenterManager instance=new PresenterManager();
    private  TiketPresenter tiketPresenter=null;
    private final SelectorPresenter selectorPresenter;
    private final Red_packetPresenter red_packetPresenter;
    private final SearchPresenter searchPresenter;

    public SearchPresenter getSearchPresenter() {
        return searchPresenter;
    }

    public Red_packetPresenter getRed_packetPresenter() {
        return red_packetPresenter;
    }

    public SelectorPresenter getSelectorPresenter() {
        return selectorPresenter;
    }

    public  TiketPresenter getTiketPresenter() {
        return tiketPresenter;
    }

    private PresenterManager(){
        tiketPresenter=new TiketPresenter();
        selectorPresenter = new SelectorPresenter();
        red_packetPresenter = new Red_packetPresenter();
        searchPresenter = new SearchPresenter();
    }
    public static PresenterManager getInstance(){
        return instance;
    }
}
